package com.xhxi.photobooker.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhxi.photobooker.entity.PortfolioLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PortfolioLikeMapper extends BaseMapper<PortfolioLike> {
    @Select("SELECT COUNT(*) FROM portfolio_like WHERE user_id = #{userId} AND portfolio_id = #{portfolioId}")
    int countByUserAndPortfolio(Long userId, Long portfolioId);
}